import service from '@/utils/request'

// @Tags GoodsInfo
// @Summary 创建GoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GoodsInfo true "创建GoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /goodsInfo/createGoodsInfo [post]
export const createGoodsInfo = (data) => {
  return service({
    url: '/goodsInfo/createGoodsInfo',
    method: 'post',
    data
  })
}

// @Tags GoodsInfo
// @Summary 删除GoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GoodsInfo true "删除GoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /goodsInfo/deleteGoodsInfo [delete]
export const deleteGoodsInfo = (data) => {
  return service({
    url: '/goodsInfo/deleteGoodsInfo',
    method: 'delete',
    data
  })
}

// @Tags GoodsInfo
// @Summary 删除GoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /goodsInfo/deleteGoodsInfo [delete]
export const deleteGoodsInfoByIds = (data) => {
  return service({
    url: '/goodsInfo/deleteGoodsInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags GoodsInfo
// @Summary 更新GoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GoodsInfo true "更新GoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /goodsInfo/updateGoodsInfo [put]
export const updateGoodsInfo = (data) => {
  return service({
    url: '/goodsInfo/updateGoodsInfo',
    method: 'put',
    data
  })
}

// @Tags GoodsInfo
// @Summary 用id查询GoodsInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GoodsInfo true "用id查询GoodsInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /goodsInfo/findGoodsInfo [get]
export const findGoodsInfo = (params) => {
  return service({
    url: '/goodsInfo/findGoodsInfo',
    method: 'get',
    params
  })
}

// @Tags GoodsInfo
// @Summary 分页获取GoodsInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GoodsInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /goodsInfo/getGoodsInfoList [get]
export const getGoodsInfoList = (params) => {
  return service({
    url: '/goodsInfo/getGoodsInfoList',
    method: 'get',
    params
  })
}

// @Tags getGoodsInfoListDay
// @Summary 分页获取GoodsInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GoodsInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /goodsInfo/getGoodsInfoListDay [get]
export const getGoodsInfoListDay = (params) => {
  return service({
    url: '/goodsInfo/getGoodsInfoListDay',
    method: 'get',
    params
  })
}
